package com.zjitc.dao;

import com.zjitc.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by LWW on 2018/4/19.
 */
public interface UserDao {
    User login(@Param("username") String username,
                     @Param("password") String password);

  boolean register(User user);

  User findUsername(String username);

  User active(String code);

  void updateState(User active);

  List<User> findAllUser();

  User findUser(String uid);

  void editUser(User user);


  void deleteUser(String uid);
}
